package org.ysu.entity;

import java.io.Serializable;
import org.ysu.core.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 贫人员表
 * </p>
 *
 * @author LiuJunDa
 * @since 2024-08-16
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "Poor对象", description = "贫人员表")
public class Poor extends BaseEntity {

    private static final long serialVersionUID = 1L;

    public Poor(Long id, String idNumber, String name, String nation, Integer sex, Boolean isHead, String relation, String work, String health, Long fId, Boolean insurance, Boolean basic) {
        super(id);
        this.idNumber = idNumber;
        this.name = name;
        this.nation = nation;
        this.sex = sex;
        this.isHead = isHead;
        this.relation = relation;
        this.work = work;
        this.health = health;
        this.fId = fId;
        this.insurance = insurance;
        this.basic = basic;
    }

    @ApiModelProperty("身份证号")
    private String idNumber;

    @ApiModelProperty("姓名")
    private String name;

    @ApiModelProperty("民族")
    private String nation;

    @ApiModelProperty("性别")
    private Integer sex;

    @ApiModelProperty("是否是户主")
    private Boolean isHead;

    @ApiModelProperty("与户主关系")
    private String relation;

    @ApiModelProperty("工作情况")
    private String work;

    @ApiModelProperty("所属户id")
    private Long fId;

    @ApiModelProperty("健康情况")
    private String health;

    @ApiModelProperty("是否有医保")
    private Boolean insurance;

    @ApiModelProperty("是否享受低保")
    private Boolean basic;


}
